package com.hoshiicloud.commissioncalculation.feign;

import com.hoshiicloud.commissioncalculation.feign.hystrix.HystrixWithdrawFeignFallback;
import com.hoshiicloud.common.rpc.Response;
import com.hoshiicloud.withdraw.param.ContractPlatformParam;
import com.hoshiicloud.withdraw.param.SubscriptionInformatioParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 提现相关
 */
@FeignClient(name = "hoshiicloud-withdraw", fallback = HystrixWithdrawFeignFallback.class)
public interface WithdrawFeignService {

	/**
	 * 查询是否签约
	 *
	 * @return
	 */
	@PostMapping(value = "/userInfo/subscriptionInformation")
	Response<Boolean> subscriptionInformation(@RequestBody SubscriptionInformatioParam param);

	/**
	 * 进行签约
	 *
	 * @return 带三方签约地址
	 */
	@PostMapping(value = "/userInfo/contractPlatform")
	Response<String> contractPlatform(@RequestBody ContractPlatformParam param);
}
